package com.example.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = -8281138828909746507L;

    private Integer id;
    private String username;
    private String email;
    private String password;
    private String avatar;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String telephone;
    private String token;
}
